//This trigger is to call the Webservice for insert and update into Account Phone
trigger HF_AccountPhoneSync on Account_Phone__c (after Insert, after Update) {
Set<Id> PhId = new Set<ID>();

    for(Account_Phone__c p:Trigger.new){
        PhId.add(p.Id);
    }
    system.debug('**********'+PhId);
    If(PhId!= null && PhId.size()>0)
        if(trigger.isInsert)
        {
            HF_ClientWSAccountphone.AddAccountPhone(PhId);
        }
        if(trigger.isUpdate)
        {
            HF_ClientWSAccountphone.UpdateAccountPhone(PhId);
        }
}